package com.lmh.ymw.service.user;

import com.lmh.ymw.entity.UserAddress;
import com.lmh.ymw.mapper.order.UserAddressDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserAddressServiceImpl implements UserAddressService{
    @Autowired
    private UserAddressDao dao;
    @Override
    public List<UserAddress> queryUserAdressList(UserAddress userAddress) {
        return dao.UserAddressList(userAddress);
    }

    @Override
    public Integer addUserAddress(UserAddress userAddress) {
        return dao.insertSelective(userAddress);
    }

    @Override
    public UserAddress getUserAddressById(Integer id) {
        return dao.selectByPrimaryKey(id);
    }
}
